package day0515;

import java.util.Arrays;

public class Test3 {
    public static void main(String[] args) {
        int[] a={1, 4, 6, 8};
        int max=getMax(a);
        System.out.println(max);
    }

    public static int getMax(int[] args) {
        Arrays.sort(args);
        return args[args.length-1];
    }
}
